package beikai.com.assistant.common.exception;

/**
 * @author: 小北(xiaobei @ dtstack.com)
 * @program: electricity-assistant
 * @description:
 * @create: 2021-12-19 09:54
 **/
public class EleException extends RuntimeException{
    private Integer code;
    private String message;

    public EleException() {
    }

    public EleException(String message) {
        super(message);
        this.code = 500;
        this.message = message;
    }

    public EleException(String message, Integer code) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }


    public void setMessage(String message) {
        this.message = message;
    }
}
